<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue-指令-v-bind</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">

        <!-- <a >链接1</a> -->
        <!-- <a >链接2</a> -->
        <!-- v-bind是可以省略的,但是:不能省略 -->
        <a v-bind:href="url">链接1</a>
        <a :href="url">链接2</a>
        <br>

        <!-- <input type="text"> -->
        <input type="text" v-model="url">

    </div>
</body>

<script>
    new Vue({
        el: "#app",
            data: {
            url: "https://www.baidu.com"
        }
    })


</script>

</html>